#python 升级 2.7.5升级到3.8.5
yum install gcc gcc-c++ libffi-devel python-setuptools vim wget make sqlite-devel zlib*  bzip2-devel openssl-devel ncurses-devel readline-devel tk-devel  -y
#切换目录
cd /opt
#下载
 wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz
#解压
 tar -zxvf Python-3.8.5.tgz
#切换到解压目录
 cd /opt/Python-3.8.5
#配置
 ./configure --with-ssl
#编译
 make
#安装
 make install
python3 --version
